package com.zyl.bean;

/**
 * @author long
 * @date 2021/1/29
 * @description
 */
public class People {

    String name;
    Integer age;
    String agent;

    public People() {
        System.out.println("people 对象创建");
    }

    public People(String name, Integer age, String agent) {
        this.name = name;
        this.age = age;
        this.agent = agent;
    }

    public People(String name, Integer age) {
        this.name = name;
        this.age = age;
        System.out.println("this age ....");
    }

    public People(String name, String agent) {
        this.name = name;
        this.agent = agent;
        System.out.println("this is agent .....");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    @Override
    public String toString() {
        return "People{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", agent='" + agent + '\'' +
                '}';
    }
}
